package day08;

public class Ainimal {
	protected String name;
	protected int age;
	protected char gender;
	
	protected double height;
	protected double weight;
	
	public Ainimal() {
	}

	public Ainimal(String name, int age, char gender, double height, double weight) {
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.height = height;
		this.weight = weight;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public char getGender() {
		return gender;
	}

	public void setGender(char gender) {
		this.gender = gender;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}
	
	public void eat() {
		System.out.println("动物们都需要吃饭");
	}
	
	public void sleep() {
		System.out.println("动物们都需要休息");
	}
	
	protected void show() {
		System.out.println("动物");
	}
	
	
}
